struct afile {
        int filesize;
        char *filecontents;
};

/*
 * reads a file and returns all its bytes.
 * returns NULL if there was an error
 * and error message using perror
 */
void fileread(struct afile *f, const char *filename);
void filecleanup(struct afile *f);
